<template>
	<view class="user-block">
		<view class="flex-row miaosha-header">
			<view class="flex-grow-1 flex-row flex-y-center">
				<image :src="__wxapp_img.miaosha.miaosha.url" style="width: 34upx;height: 34upx;margin-right: 12upx"></image>
				<view style="font-size: 12pt;color: #ff8b57;margin-right: 16upx">整点秒杀</view>
				<view style="margin-right: 24upx" v-if="miaosha.date">{{miaosha.date}}</view>
				<view style="margin-right: 24upx">{{miaosha.name}}</view>
				<block v-if="!miaosha.ms_next&&miaosha.times">
					<view class="flex-y-center miaosha-time-item" style="width: 32upx;height: 34upx">
						<image :src="__wxapp_img.dapp.time_bg.url" style="width: 100%;height: 100%"></image>
						<view class="flex-y-center flex-x-center">{{miaosha.times.h?miaosha.times.h:'--'}}
						</view>
					</view>
					<image class="miaosha-item-split" :src="__wxapp_img.dapp.time_split.url" style="width: 20upx;height: 34upx"></image>
					<view class="flex-y-center miaosha-time-item" style="width: 32upx;height: 34upx">
						<image :src="__wxapp_img.dapp.time_bg.url" style="width: 100%;height: 100%"></image>
						<view class="flex-y-center flex-x-center">{{miaosha.times.m?miaosha.times.m:'--'}}
						</view>
					</view>
					<image class="miaosha-item-split" :src="__wxapp_img.dapp.time_split.url" style="width: 20upx;height: 34upx"></image>
					<view class="flex-y-center miaosha-time-item" style="width: 32upx;height: 34upx">
						<image :src="__wxapp_img.dapp.time_bg.url" style="width: 100%;height: 100%"></image>
						<view class="flex-y-center flex-x-center">{{miaosha.times.s?miaosha.times.s:'--'}}
						</view>
					</view>
				</block>
			</view>
			<navigator class="flex-grow-0 flex-row flex-y-center" url="/pages/miaosha/miaosha">
				<view style="margin-right: 14upx">更多</view>
				<image :src="__wxapp_img.dapp.jiantou_r.url" style="width: 12upx;height: 22upx"></image>
			</navigator>
		</view>
		<scroll-view scrollX="true" style="background: #fff;padding: 16upx 8upx">
			<view class="flex-row miaosha-goods-list">
				<navigator class="flex-grow-0 miaosha-goods" style="background: #fff;" :url="'/pages/miaosha/details/details?id='+item.id"
				 v-for="item in miaosha.goods_list" :key="item.id">
					<form @submit="$emit('_formIdSubmit',$event)" reportSubmit="true">
						<button formType="submit" id="_formIdSubmit" class="_formIdSubmit">
							<image mode="aspectFill" :src="item.pic"></image>
							<view class="text-more-2">{{item.name}}</view>
							<view class="flex-row flex-y-center flex-x-center text-more" style="color: #ff4544;">
								<view>￥</view>
								<view style="font-size:13pt">{{item.miaosha_price}}</view>
							</view>
							<view class="flex-y-center flex-x-center text-more fs-sm" style="color: #aaa;">
								<view>￥</view>
								<view>{{item.price}}</view>
							</view>
						</button>
					</form>
				</navigator>
			</view>
		</scroll-view>
	</view>
</template>

<script>var myVue = {};
	export default {
		props: ['__wxapp_img','miaosha','item'],
		data() {
			return {
				
			};
		}
	}
</script>

<style scoped>
</style>
